import request from '@/utils/request'

// 查询医生管理列表
export function listDoctor(query) {
  return request({
    url: '/manager/doctor/list',
    method: 'get',
    params: query
  })
}

// 查询医生管理详细
export function getDoctor(doctorID) {
  return request({
    url: '/manager/doctor/' + doctorID,
    method: 'get'
  })
}

// 查询医生管理列表
export function customer(query) {
  return request({
    url: '/manager/dispatch/customer/list',
    method: 'get',
    params: query
  })
}

// 新增医生管理
export function addDoctor(data) {
  return request({
    url: '/manager/doctor',
    method: 'post',
    data: data
  })
}
export function modifyPass(data) {
  return request({
    url: '/manager/doctor/modifyPass',
    method: 'post',
    data: data
  })
}
// 修改医生管理
export function updateDoctor(data) {
  return request({
    url: '/manager/doctor',
    method: 'put',
    data: data
  })
}

// 删除医生管理
export function delDoctor(doctorID) {
  return request({
    url: '/manager/doctor/' + doctorID,
    method: 'delete'
  })
}

// 导出医生管理
export function exportDoctor(query) {
  return request({
    url: '/manager/doctor/export',
    method: 'get',
    params: query
  })
}

//获取科室列表
export function getDepartList(){
  return request({
    url: '/manager/depart/list',
    method: 'get',
  })
}
// 冻结医生
export function lightDoctor(doctorID) {
  return request({
    url: '/manager/doctor/light/' + doctorID,
    method: 'put',
  })
}
